package com.hdaccp.xingmu.controller;

import com.hdaccp.xingmu.dao.TypebDao;
import com.hdaccp.xingmu.entity.Typeb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/typeb")
public class TypebCon {
    @Autowired
    private TypebDao typebDao;
    @RequestMapping("/all")
    @ResponseBody
    public List<Typeb> ALL(){
        return typebDao.findAll();
    }
}
